Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@crave/farmblocks-form-wrapper

Package Overview
Dependencies
Maintainers
6
Versions
529
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crave/farmblocks-form-wrapper

A form wrapper container with options for cancel and save.

  • 1.8.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

Farmblocks Form Wrapper

A wrapper container with options for cancel and save.

Installation

npm install @crave/farmblocks-form-wrapper

Usage

<FormWrapper
  onCancel={e => console.log(e)}
  onSave={e => console.log(e)}
  title="Title"
  extraContent={<div>Extra content</div>}
>
  <Input label="First Name" />
  <Input label="Last Name" />
</FormWrapper>

Output:

Properties

properytypedescriptionrequireddefault
titlestringThe text to be used as the title
cancelLabelstringThe text to be used in the Cancel linkCancel
saveLabelstringThe text to be used by the Save buttonSave
saveButtonPropsobjectThe props for Save button (check Button)
onCancelfunctionCallback of Cancel link clickYes
onSavefunctionCallback of Save button clickYes
childrennodeContents to be renderedYes
extraContentnodeContents to be rendered after Save button
loadingbooleanLoading state to be passed to Save button
idstringid attribute given to the wrapper and to the save and cancel actionables (with -save and -cancel sufixes)form-wrapper

License

MIT

Keywords

FAQs

Package last updated on 10 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc